﻿using System;
using System.ComponentModel;

namespace HML
{
    /// <summary>
    /// PaginationBar当前页码更改事件参数
    /// </summary>
    public class PaginationBarChangedEventArgs : CancelEventArgs
    {
        private readonly int index;
        /// <summary>
        /// 将要切换到的页码（1开始）
        /// </summary>
        public int Index
        {
            get { return this.index; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="index">将要切换到的页码（1开始）</param>
        public PaginationBarChangedEventArgs(int index)
        {
            this.index = index;
        }

    }

}
